<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<body>
<div style="text-align: center;">
    <ul class="pagination">
        <li><a th:href="@{/listAdmin/}+${pageNum.get('currentPage')-1}">&laquo;</a></li>
        <li class="" th:classappend="${(pageNum.get('currentPage')==i ? 'active': '')}"
            th:each="i:${#numbers.sequence(pageNum.get('startPage'),pageNum.get('endPage'))}"><a th:href="@{/listAdmin/}+${i}" th:text="${i}">1</a></li>
        <li><a href="#" th:href="@{/listAdmin/}+${pageNum.get('currentPage')+1}">&raquo;</a></li>
    </ul>
</div>

</body>
</html>